package org.jeecg.modules.demo.basememberproject.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 会员已购买的项目
 * @Author: jeecg-boot
 * @Date: 2022-02-11
 * @Version: V1.0
 */
@Data
@TableName("base_member_project")

@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "base_member_project对象", description = "会员已购买的项目")
public class BaseMemberProject implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**
     * 项目名
     */
    @Excel(name = "项目名", width = 15)
    @ApiModelProperty(value = "项目名")
    private String projectName;
    /**
     * 项目分组归属
     */
    @Excel(name = "项目分组归属", width = 15)
    @ApiModelProperty(value = "项目分组归属")
    private String projectGroup;
    /**
     * 是否激活
     */
    @Excel(name = "是否激活", width = 15)
    @ApiModelProperty(value = "是否激活")
    private String isActivate;
    /**
     * 项目描述
     */
    @Excel(name = "项目描述", width = 15)
    @ApiModelProperty(value = "项目描述")
    private String itemDescription;
    /**
     * 项目图
     */
    @Excel(name = "项目图", width = 15)
    @ApiModelProperty(value = "项目图")
    private String projectPic;
    /**
     * 价格
     */
    @Excel(name = "价格", width = 15)
    @ApiModelProperty(value = "价格")
    private Double projectPrice;
    /**
     * 是否参加会员折扣
     */
    @Excel(name = "是否参加会员折扣", width = 15)
    @ApiModelProperty(value = "是否参加会员折扣")
    private String isDiscount;
    /**
     * 项目编码
     */
    @Excel(name = "项目编码", width = 15)
    @ApiModelProperty(value = "项目编码")
    private String projectNum;
    /**
     * 权重
     */
    @Excel(name = "权重", width = 15)
    @ApiModelProperty(value = "权重")
    private String projectWeight;
    /**
     * 成本价
     */
    @Excel(name = "成本价", width = 15)
    @ApiModelProperty(value = "成本价")
    private String costPrice;
    /**
     * 最低利润率限额
     */
    @Excel(name = "最低利润率限额", width = 15)
    @ApiModelProperty(value = "最低利润率限额")
    private String minimumProfit;
    /**
     * 毛利率
     */
    @Excel(name = "毛利率", width = 15)
    @ApiModelProperty(value = "毛利率")
    private String grossProfit;
    /**
     * 服务项
     */
    @Excel(name = "服务项", width = 15)
    @ApiModelProperty(value = "服务项")
    private String servicesAvailable;
    /**
     * 服务次数
     */
    @Excel(name = "服务次数", width = 15)
    @ApiModelProperty(value = "服务次数")
    private String servicesNum;
    /**
     * 详情图
     */
    @Excel(name = "详情图", width = 15)
    @ApiModelProperty(value = "详情图")
    private String detailsUrl;
    /**
     * 总销量
     */
    @Excel(name = "总销量", width = 15)
    @ApiModelProperty(value = "总销量")
    private String volume;
    /**
     * 订单状态 01.未付款 02.已付款 03.已退款
     */
    @Excel(name = "订单状态", width = 15)
    @ApiModelProperty(value = "订单状态")
    private String orderStatus;

    /**
     * 是否免费
     */
    @Excel(name = "是否免费", width = 15)
    @ApiModelProperty(value = "是否免费")
    private String free;
    /**
     * 详情图
     */
    @Excel(name = "关联提成员工", width = 15)
    @ApiModelProperty(value = "关联提成员工")
    private String staffId;//staff_id

    @Excel(name = "员工提成", width = 15)
    @ApiModelProperty(value = "员工提成")
    private String staffPercentage;//staff_percentage

    //关联店铺
    private String storeId;
    private String groupId;

    private String memberId;
    private String orderId;

    private Integer num;

    /**
     * 总价
     */
    @Excel(name = "总价", width = 15)
    @ApiModelProperty(value = "总价")
    private Double totalPrice;
    /**
     * 优惠金额
     */
    @Excel(name = "优惠金额", width = 15)
    @ApiModelProperty(value = "优惠金额")
    private Double preferAmount;
    /**
     * 是否赠送（是：1，否：0）
     */
    @Excel(name = "是否赠送（是：1，否：0）", width = 15)
    @ApiModelProperty(value = "是否赠送（是：1，否：0）")
    private Integer giveFlag;

    private String projectId;
}
